﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="UserurlManager.aspx.cs" Inherits="admin_UserurlManager" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
    
        <link rel="Stylesheet" type="text/css" href="../Styles/right_style.css" />
   <script type="text/javascript" src="../Scripts/jquery.ui/js/jquery.js"></script>

   <style type="text/css">
<!--
html{ scrollbar-base-color: #dbecf8; scrollbar-arrow-color: #2a8ed1; scrollbar-track-color: #bdddf2; scrollbar-3dlight-color: #2886c5; scrollbar-darkshadow-color: #2886c5;
scrollbar-face-color: #dbecf8; scrollbar-shadow-color: #dbecf8;  }
-->
</style>
</head>
<body>
    <form id="form1" runat="server">
    <!--个人网址-->
    <div id="tb1_2_content" class="cont01_word">
      <div class="person_ziliao">
         <div class="person_xinxi_title" align="left">添加个人网址</div>

         <div class="person_xinxi_neirong" style=" text-align: left;">
           <div class="person_neirong_list" >说&nbsp;&nbsp;明：
             <asp:TextBox ID="txtRemark" runat="server" Width="200px"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtRemark"
            Font-Bold="True" Font-Size="12px" ErrorMessage="说明不能为空！">*</asp:RequiredFieldValidator>
           </div>
           <div class="person_neirong_list" align="left">网&nbsp;&nbsp;址：
             <asp:TextBox ID="txtURL" runat="server" Width="200px"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtURL"
            Font-Bold="True" Font-Size="12px" ErrorMessage="网址不能为空！">*</asp:RequiredFieldValidator>
           </div>
           <div class="person_url">
            <asp:Button ID="btnAdd" runat="server" OnClick="btnAdd_Click" Text="" CssClass="url_button" />
           </div>
         </div>

         <asp:ValidationSummary ID="ValidationSummary1" runat="server" Font-Bold="True" />

         <div class="person_xinxi_title">管理个人网址</div>

         <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" BorderColor="#77ACD0"  GridLines="Horizontal" AllowPaging="True" Width="99%" OnPageIndexChanging="GridView1_PageIndexChanging" OnRowCommand="GridView1_RowCommand" CssClass="table_bianju">
                                    <FooterStyle BackColor="#B5C7DE" ForeColor="#4A3C8C" />
                                    <Columns>
                                        <asp:BoundField DataField="UserURLId" HeaderText="序号">
                                            <HeaderStyle CssClass="itemhead" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="Remark" HeaderText="说明" >
                                            <HeaderStyle CssClass="itemhead" />
                                        </asp:BoundField>
                                        <asp:HyperLinkField DataNavigateUrlFields="URL" DataTextField="URL" HeaderText="网址" Target="_blank" >
                                            <HeaderStyle CssClass="itemhead" />
                                        </asp:HyperLinkField>
                                        <asp:TemplateField HeaderText="操作">
                                            <ItemTemplate>
                                                <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" CommandArgument='<%# Eval("UserURLId") %>' CommandName="updateURL">编辑</asp:LinkButton>
                                                <asp:LinkButton ID="LinkButton2" runat="server" CausesValidation="False" CommandArgument='<%# Eval("UserURLId") %>' CommandName="delURL" OnClientClick="return confirm('确认删除？')">删除</asp:LinkButton>
                                            </ItemTemplate>
                                            <HeaderStyle CssClass="itemhead" />
                                        </asp:TemplateField>
                                    </Columns>
                                    <RowStyle BackColor="Transparent" ForeColor="Black" HorizontalAlign="Center" />
                                    <SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="#F7F7F7" />
                                    <PagerStyle BackColor="#E4F1FD" ForeColor="#1E5494" HorizontalAlign="Right" />
                                    <HeaderStyle BackColor="#E4F1FD" Font-Bold="True" ForeColor="#1E5494" BorderColor="#77ACD0"/>
                                    <AlternatingRowStyle BackColor="#E4F1FD" />
                                </asp:GridView>
            </div>
         </div>
    </form>
</body>
</html>